/*
 * @Author: zws
 * @Date: 2021-05-28 10:58:10
 * @LastEditTime: 2021-05-28 11:00:15
 * @LastEditors: zws
 * @Description:
 * @FilePath: \serve\src\db\models\UserToRoles.js
 */
import { sequelize, Model, DataTypes } from '@/db/sequelize';
class UserToRoles extends Model { }

UserToRoles.init({
    uid: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: '用户id'
    },
    rid: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: '角色id'
    }
}, {
    sequelize,
    tableName: 'sys_user-roles'
});

export default UserToRoles;